package com.iplant.basic.service.basicenum.mss;


import com.iplant.base.po.enums.BaseEnum;

public enum MSSPackageType implements BaseEnum {
	/**
	 * 默认
	 */
	Default(0, "默认"),

	/**
	 * 主单位
	 */
	Main(1, "主单位"),
	/**
	 * 内包装
	 */
	InPackage(2, "内包装"),
	/**
	 * 箱体
	 */
	Box(3, "箱") ,
	/**
	 * 栈板
	 */
	Pallets(4, "栈板") ,
	/**
	 * 其他
	 */
	Other(5, "其他") ;

	private int value;
	private String label;
	private String remark="";

	MSSPackageType(int value, String label) {
		this.value = value;
		this.label = label;
	}
	MSSPackageType(int value, String label,String remark) {
		this.value = value;
		this.label = label;
		this.remark = remark;
	}

	/**
	 *
	 * @param val
	 * @return
	 */
	public static MSSPackageType getEnumType(int val) {
		for (MSSPackageType type : MSSPackageType.values()) {
			if (type.getValue() == val) {
				return type;
			}
		}
		return null;
	}


	@Override
	public int getValue() {
		return value;
	}

	@Override
	public void setValue(int value) {
		this.value = value;
	}
	@Override
	public String getLabel() {
		return label;
	}

	@Override
	public void setLabel(String label) {
		this.label = label;
	}

	@Override
	public String getRemark() {
		return remark;
	}

	@Override
	public void setRemark(String remark) {
		this.remark = remark;
	}
}
